#include <stdio.h>
#include <stdlib.h>

int main() {
	char *p = (char *)malloc(10 * sizeof(int));
	int *q = (int *)p;
	for (int i = 0; i < 10; i++) {
		q[i] = i;
	}

	free(p);
	return 0;
}
